package edu.ncet.desktop.shared;

import java.io.Serializable;

import com.google.gwt.user.client.rpc.IsSerializable;

public class CurrentExamResult implements IsSerializable,Serializable{

	private static final long serialVersionUID = -8761545887077450269L;
	
	
	Integer quesNo;
	String question;
	String[] ans;
	Integer typeNo;
	String typeName;
	String correctAns;
	String writtenAns;

	public CurrentExamResult() {
		
	}
	
	public CurrentExamResult( Integer quesNo , String question, String[] ans , String typeName , String correctAns , String writtenAns)
	{
		this.quesNo = quesNo;
		this.question = question;
		this.ans = ans;
		this.typeName = typeName;
		this.correctAns = correctAns;
		this.writtenAns = writtenAns;
	}
	
	public CurrentExamResult(QuestionModel question, String typeName, String correctAns, String writtenAns)
	{
		this.quesNo = question.getQuesNo();
		this.question = question.getQuestion();
		this.ans = new String[]{question.getAns1(),question.getAns2(),question.getAns3(),question.getAns4()};
		this.typeName = typeName;
		this.correctAns = correctAns;
		this.writtenAns = writtenAns;
	}

	public Integer getQuesNo() {
		return quesNo;
	}

	public void setQuesNo(Integer quesNo) {
		this.quesNo = quesNo;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String[] getAns() {
		return ans;
	}

	public void setAns(String[] ans) {
		this.ans = ans;
	}

	public Integer getTypeNo() {
		return typeNo;
	}

	public void setTypeNo(Integer typeNo) {
		this.typeNo = typeNo;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getCorrectAns() {
		return correctAns;
	}

	public void setCorrectAns(String correctAns) {
		this.correctAns = correctAns;
	}

	public String getWrittenAns() {
		return writtenAns;
	}

	public void setWrittenAns(String writtenAns) {
		this.writtenAns = writtenAns;
	}
}
